e7065ff9d7bb8a00c08b303c835e838ce2834f7b,core/baseLanguage/dates/runtime/src/jetbrains/mps/baseLanguage/dates/runtime/DateTimeOperations.java,DateTimeOperations,compare,#Period#CompareType#Period#,368
Before Change
if(op1 == null) {
compareValue = op2 != null ? -1 : 0;
} else {
if (op2 == null) {
compareValue = 1;
} else {
Duration d1 = op1.toDurationFrom(now);
warn(d1);
Duration d2 = op2.toDurationFrom(now);
warn(d2);
compareValue = d1.compareTo(d2);
warn(compareValue);
After Change
if(op1 == null) {
compareValue = op2 != null ? -1 : 0;
} else {
compareValue = op2 != null ? op1.toDurationFrom(now).compareTo(op2.toDurationFrom(now)) : 1;
}
return compareResult(compareValue, cmp);